const isDevelopment = process.env.NODE_ENV === 'development'
const {
  requestURL, proxyPath, useProxy, useEncrypt,
} = require('./index')

let baseURL = ''
if (useProxy) {
  baseURL = isDevelopment ? proxyPath : ''
} else {
  baseURL = requestURL
}

module.exports = {
  // 请求域名
  baseURL,
  // 响应成功code值
  responseSuccessCode: 200,
  // 超时时间
  timeout: 30 * 60 * 1000,
  // 是否开启加密
  useEncrypt,
}
